/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2013
 */

package com.smg.community.model;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.util.*;

import javacommon.base.*;
import javacommon.util.*;

import cn.org.rapid_framework.util.*;
import cn.org.rapid_framework.web.util.*;
import cn.org.rapid_framework.page.*;
import cn.org.rapid_framework.page.impl.*;

import com.smg.community.model.*;
import com.smg.community.dao.*;
import com.smg.community.service.*;
import com.smg.community.vo.query.*;

/**
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 */


public class SmgRegVerifycodeRecord extends BaseEntity implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias
	public static final String TABLE_ALIAS = "SmgRegVerifycodeRecord";
	public static final String ALIAS_RECORDID = "recordid";
	public static final String ALIAS_VERIFYCODE = "verifycode";
	public static final String ALIAS_TIMESTAMP = "timestamp";
	public static final String ALIAS_MOBILE_NUMBER = "mobileNumber";
	public static final String ALIAS_CREATE_DATE = "createDate";
	
	//date formats
	public static final String FORMAT_CREATE_DATE = DATE_FORMAT;
	
	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
    /**
     * recordid       db_column: recordid 
     */	
	
	private java.lang.Integer recordid;
    /**
     * verifycode       db_column: verifycode 
     */	
	private java.lang.String verifycode;
    /**
     * timestamp       db_column: timestamp 
     */	
	private java.lang.String timestamp;
    /**
     * mobileNumber       db_column: mobileNumber 
     */	
	private java.lang.String mobileNumber;
    /**
     * createDate       db_column: createDate 
     */	
	
	private java.util.Date createDate;
	//columns END

	public SmgRegVerifycodeRecord(){
	}

	public SmgRegVerifycodeRecord(
		java.lang.Integer recordid
	){
		this.recordid = recordid;
	}

	public void setRecordid(java.lang.Integer value) {
		this.recordid = value;
	}
	
	public java.lang.Integer getRecordid() {
		return this.recordid;
	}
	public void setVerifycode(java.lang.String value) {
		this.verifycode = value;
	}
	
	public java.lang.String getVerifycode() {
		return this.verifycode;
	}
	public void setTimestamp(java.lang.String value) {
		this.timestamp = value;
	}
	
	public java.lang.String getTimestamp() {
		return this.timestamp;
	}
	public void setMobileNumber(java.lang.String value) {
		this.mobileNumber = value;
	}
	
	public java.lang.String getMobileNumber() {
		return this.mobileNumber;
	}
	public String getCreateDateString() {
		return DateConvertUtils.format(getCreateDate(), FORMAT_CREATE_DATE);
	}
	public void setCreateDateString(String value) {
		setCreateDate(DateConvertUtils.parse(value, FORMAT_CREATE_DATE,java.util.Date.class));
	}
	
	public void setCreateDate(java.util.Date value) {
		this.createDate = value;
	}
	
	public java.util.Date getCreateDate() {
		return this.createDate;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("Recordid",getRecordid())
			.append("Verifycode",getVerifycode())
			.append("Timestamp",getTimestamp())
			.append("MobileNumber",getMobileNumber())
			.append("CreateDate",getCreateDate())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getRecordid())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof SmgRegVerifycodeRecord == false) return false;
		if(this == obj) return true;
		SmgRegVerifycodeRecord other = (SmgRegVerifycodeRecord)obj;
		return new EqualsBuilder()
			.append(getRecordid(),other.getRecordid())
			.isEquals();
	}

}

